package com.cwm.test.facade.point;

public class FacadeService {

    QualifyService qualifyService = new QualifyService();
    PaymentService paymentService = new PaymentService();
    ShippingService shippingService = new ShippingService();

    public void exChange(GiftInfo info){
        if (qualifyService.isAvailable(info)) {
            if (paymentService.pay(info)) {
                String shippingNo = shippingService.delivery(info);
                System.out.println("物流系统下载成功，物流单号是：" + shippingNo);
            }
        }

    }
}
